using System.IO;
using Core.Base;
using Core.Utils;
using SimpleJSON;
using UnityGameFramework.Runtime;

namespace Core
{

    public class LubanManager : Singleton<LubanManager>, ISingleton
    {

        public void OnInit()
        {
            Log.Info("=======> 开始加载游戏配置");
            var tables = new cfg.Tables(file =>
            {
                Log.Info(" flie ==> {0}", file);
                return JSON.Parse(File.ReadAllText($"{Assets.Path.CONFIG_JSON_ROOT}/{file}.json"));
            });
            // Log.Info("tbtest {0}", tbTest.DataMap.);
        }

        public void OnDestory()
        {
            Destory();
        }
    }



}